import Request from "@/util/api.request.js"

/**获取购物车的数据 */
export const getCartList = (query) => {
	return Request.Execute({
		url: `/cart/index`,
		method: 'GET'
	});
} 

/**
 * 添加商品到购物车
 * @param {*} Params 
 */
export const postAddToCart = (Params)=>{
	return Request.Execute({
		url: `/cart/add`,
		data:Params,
		method: 'POST'
	});
}